package com.example.demotest.pojo.dto;

import com.example.demotest.pojo.dto.IdleItemDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class OrderDTO {
    private Integer orderId;
    private IdleItemDTO idleItem;  // 关联的二手商品信息
    private Integer buyerId;
    private Integer sellerId;
    private Integer quantity;
    private BigDecimal totalPrice;
    private Integer orderStatus;  // 与前端 orderStatus 数组索引一致

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

    private String paymentMethod;  // 对应前端 paymentWay
    private String transactionId;
    private String description;
}